<form action="actions/create/{$entity->id}/" method="post" enctype="multipart/form-data">
  <input type="hidden" name="entity_id" value="{$entity->id}" />

  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>Create Method</h3>
  </div>

  <div class="modal-body">

    <div class="control-group">
      <label for="name">Action Name</label>
      <input id="name" name="name" class="input-xlarge" type="text" value="" required="required" />
    </div>

    <div class="control-group">
      <label for="description">Description</label>
      <textarea id="description" name="description" class="input-xlarge"></textarea>
    </div>

    <div class="control-group">
      <label for="template">Template</label>
      <select name="template" class="input-xlarge" required="required">
        {foreach from="$templates" item="template"}
        <option value="{$template->name}">{$template->name}</option>
        {/foreach}
      </select>
    </div>

  </div>
  <!-- .modal-body -->

  <div class="modal-footer">
    <button type="submit" class="btn btn-primary">Create and edit action</button>
  </div>

</form>
